// 员工信息
import request from "@/utils/https/requests";

// 列表
export function menInfoList(data: any) {
    return request({
        url: "/menInfo/list", method: "post", data,
    });
}

// 添加
export function postAddMenInfo(data: any) {
    return request({
        url: "/menInfo/postAdd", method: "post", data,
    });
}

// 修改
export function postModMenInfo(data: any) {
    return request({
        url: `/menInfo/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteMenInfo(id: string) {
    return request({
        url: `/menInfo/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteMenInfo = (id) => {
    return request({
        url: `/menInfo/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function menInfoDetail(id: string) {
    return request({
        url: `/menInfo/detail/${id}`, method: "post",
    });
}